package edu.hk.ckboot.dao;

import edu.hk.ckboot.entity.Student;
import edu.hk.ckboot.mapper.StudentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
public class StudentDao {
    @Autowired(required=false)
    StudentMapper studentMapper;
    public List<Student> getAll(){
       return studentMapper.selectByExample(null);//没有条件查询全部数据
    }
}
